package com.ruoyi.applet.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品对象 goods
 * 
 * @author ruoyi
 * @date 2024-11-14
 */
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品唯一标识 */
    private Long goodsId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 商品介绍 */
    @Excel(name = "商品介绍")
    private String goodsInfo;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal goodsPrice;

    /** 商品图片路径 */
    @Excel(name = "商品图片路径")
    private Long goodsImgId;

    /** 商家外键id */
    @Excel(name = "商家外键id")
    private Long goodsShopId;

    /** 商品库存 */
    @Excel(name = "商品库存")
    private Long goodsNum;

    /** 商品状态(1：上架,2：下架，3：审核) */
    @Excel(name = "商品状态(1：上架,2：下架，3：审核)")
    private Long goodsStatus;

    /** 所属分类 */
    @Excel(name = "所属分类")
    private Long categoryId;

    @Excel(name = "整数")
    private Long goodsNumber;

    @Excel(name = "小数")
    private String goodsDecimal;

    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setGoodsName(String goodsName) 
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName() 
    {
        return goodsName;
    }
    public void setGoodsInfo(String goodsInfo) 
    {
        this.goodsInfo = goodsInfo;
    }

    public String getGoodsInfo() 
    {
        return goodsInfo;
    }
    public void setGoodsPrice(BigDecimal goodsPrice) 
    {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getGoodsPrice() 
    {
        return goodsPrice;
    }
    public void setGoodsImgId(Long goodsImgId) 
    {
        this.goodsImgId = goodsImgId;
    }

    public Long getGoodsImgId() 
    {
        return goodsImgId;
    }
    public void setGoodsShopId(Long goodsShopId) 
    {
        this.goodsShopId = goodsShopId;
    }

    public Long getGoodsShopId() 
    {
        return goodsShopId;
    }
    public void setGoodsNum(Long goodsNum) 
    {
        this.goodsNum = goodsNum;
    }

    public Long getGoodsNum() 
    {
        return goodsNum;
    }
    public void setGoodsStatus(Long goodsStatus) 
    {
        this.goodsStatus = goodsStatus;
    }

    public Long getGoodsStatus() 
    {
        return goodsStatus;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodsId", getGoodsId())
            .append("goodsName", getGoodsName())
            .append("goodsInfo", getGoodsInfo())
            .append("goodsPrice", getGoodsPrice())
            .append("goodsImgId", getGoodsImgId())
            .append("goodsShopId", getGoodsShopId())
            .append("goodsNum", getGoodsNum())
            .append("goodsStatus", getGoodsStatus())
            .append("categoryId", getCategoryId())
            .toString();
    }

    public String getGoodsDecimal() {
        return goodsDecimal;
    }

    public void setGoodsDecimal(String goodsDecimal) {
        this.goodsDecimal = goodsDecimal;
    }

    public Long getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(Long goodsNumber) {
        this.goodsNumber = goodsNumber;
    }
}
